package schdule

import "golearnpro/pc/engs"

type Simple struct {
	ReqPoint chan engs.Request
}

func (e *Simple) WorkerChan() chan engs.Request {
	return e.ReqPoint
}

func (e *Simple) WorkerReady(requests chan engs.Request) {

}

func (e *Simple) Run() {
	e.ReqPoint = make(chan engs.Request)
}

func (e *Simple) Submit(req engs.Request) {
	go func() {
		e.ReqPoint <- req
	}()
}

//func (e *Simple) ConfC(p chan engs.Request) {
//	e.ReqPoint = p
//}
